﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Marmat.Common.Http
{
    /// <summary>
    /// 参数值作为请求uri
    /// </summary>
    [AttributeUsage(AttributeTargets.Parameter)]
    public class UriAttribute : Attribute
    {
        /// <summary>
        /// 参数值作为请求uri
        /// </summary>
        /// <param name="url">请求的uri地址</param>
        public UriAttribute(string url)
        {
            this.Url = url;
        }

        /// <summary>
        /// 请求的uri地址
        /// </summary>
        public string Url { get; }
    }
}
